import axios from 'axios'
export const addOrder = async (data,id)=>{
  let date = new Date()
  return axios({
    url:'http://localhost:3000/order',
    method:'POST',
    data:{
      userid:id,
      shoplist:data,
      create:date.toLocaleString()
    }
  })
}
export const getOrder = async (id)=>{
  return axios({
    url:'http://localhost:3000/order?userid='+id,
  })
}